package service;

import dao.LikeMapper;
import entity.Like;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class LikeServiceImpl implements LikeService{

    @Resource
    private LikeMapper likeMapper;


    @Override
    public List<Like> getLikeuser(Integer uid) {
        return likeMapper.getLikeuser(uid);
    }

    @Override
    public int addLike(Integer userid, Integer blogid) {
        return likeMapper.addLike(userid,blogid);
    }

    @Override
    public int delLike(Integer userid, Integer blogid) {
        return likeMapper.delLike(userid,blogid);
    }


}
